package com.ywu.application.standard.role.data;

import com.ywu.application.standard.role.dto.ApiRoleAuthDto;
import com.ywu.application.standard.role.entity.ApiRoleAuthEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.ArrayList;
import java.util.List;

@Mapper
public interface ApiRoleAuthRepository {
    List<ApiRoleAuthEntity> queryApiRoleInfo(@Param("model") ApiRoleAuthDto apiRoleAuthDto);

    void batchInsertApiRoleInfo(@Param("list") ArrayList<ApiRoleAuthEntity> apiRoleAuthEntities);

    void deleteBatchByApiId(@Param("list") List<Integer> apiIds);

    void deleteByRoleId(@Param("id") Integer id);
}
